import axios from "~/axios";

export function getRole(page) {
  return axios.get("/role?page=" + page);
}

export function createRole(data) {
  return axios.post("/role", data);
}

export function updateRole(id, data) {
  return axios.put(`/role/${id}`, data);
}

export function deleteRole(id) {
  return axios.delete("/role/" + id);
}

export function getidRole(id) {
  return axios.get(`/role/${id}`);
}
